package common;

public class StepData {
  private IGrid grid;
  private float degrees;
  private int milliSecs;
  
  /**
   * This constructor is just here to remind the caller that these three values are necessary. Feel free
   * to use dummy values, but don't forget to set each piece of data at some point before passing this to
   * the presentation or the buffer. 
   * 
   * @param grid      grid with the new temperatures
   * @param degrees   number of degrees to move the sun
   * @param milliSecs number of milliseconds to increment the clock display by
   */
  public StepData(IGrid grid, float degrees, int milliSecs) {
    this.grid = grid;
    this.degrees = degrees;
    this.milliSecs = milliSecs;
  }
  
  /**
   * @param degrees number of degrees to move the sun
   */
  public void setDegrees(float degrees) {
    this.degrees = degrees;
  }
  
  public float getDegrees() {
    return degrees;
  }
  
  /**
   * @param grid a grid with the new temperatures from the most recent iteration
   */
  public void setGrid(IGrid grid) {
    this.grid = grid;
  }
  
  public IGrid getGrid() {
    return grid;
  }
  
  /**
   * @param milliSecs number of milliseconds to increment the clock display by
   */
  public void setMilliSecs(int milliSecs) {
    this.milliSecs = milliSecs;
  }
  
  public int getMilliSecs() {
    return milliSecs;
  } 
  
}
